package cn.edu.pku.ss.situationawareperceiver;

import org.alljoyn.bus.annotation.Position;

public class ContextShareMessage {
	/**
	 * This class defines the form of context in sharing process.
	 * ContextData + MetaData 
	 */

	@Position(0)
	public int	contextTypeInt;
	
	@Position(1)
	public String 	truthValue;
	
	@Position(2)
	public long 	genDate;	//records the generated date of this context object 
	
	@Position(3)
	public long	expireDate;	//records the expire date of this context object

	@Position(4)
	public String senderPeerId;
	
	@Position(5)
	public String recipientPeerID;

	public void initialize(int contextTypeInt, String truthValue,
			long genDate, long expireDate, String senderPeerId,
			String recipientPeerID) {
		this.contextTypeInt = contextTypeInt;
		this.truthValue = truthValue;
		this.genDate = genDate;
		this.expireDate = expireDate;
		this.senderPeerId = senderPeerId;
		this.recipientPeerID = recipientPeerID;
	}
	
	
}
